import Vue from 'vue'
import Vuex from 'vuex'

import user from './user'
import rentStage from './rentStage'
import order from './order'
import orderHistory from './orderHistory'
import orderSubmitted from './orderSubmitted'

Vue.use(Vuex)

const debug = process.env.NODE_ENV !== 'production'

export default new Vuex.Store({
  modules: {
    user,
    rentStage,
    order,
    orderHistory,
    orderSubmitted
  },
  strict: debug
})
